[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
Hi, Bruce— This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work. What I need are ToC entries like AuthorName ShortTitle 1–6 I need this pagination

[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks
I'm not quite sure what you want to do with these numbers: something like printing out a contents page but instead of the start page of a chapter it shows the last page of the chapter? If so then try creating a custom list and use \writetolist immediately before each \stopchapter command

[NTG-context] Re: chronological TOC

2024-01-29 Thread jbf
] Then at an appropriate point after each \startchapter I have placed (as an example): \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} This gives me my list, but in page number order. How do I get the date (e.g. 29 April 2017) to be the ordering factor in the list. I assume

[NTG-context] Re: chronological TOC

2024-01-29 Thread Bruce Horrocks
n defining a separate TOC to place at the back, but have >>> not succeeded in the chronological order! Here is what I have done: >>> >>> \definelist[chron][criterium=all,alternative=c] >>> >>> At the back of the book: >>> >>> \placelist[chron][cri

[NTG-context] Re: chronological TOC

2024-01-29 Thread Wolfgang Schuster
] At the back of the book: \placelist[chron][criterium=all] Then at an appropriate point after each \startchapter I have placed (as an example): \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} This gives me my list, but in page number order. How do I get the date (e.g. 29 April

[NTG-context] Re: chronological TOC

2024-01-27 Thread Henning Hraban Ramm
=all] Then at an appropriate point after each \startchapter I have placed (as an example): \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} This gives me my list, but in page number order. How do I get the date (e.g. 29 April 2017) to be the ordering factor in the list. I assume

[NTG-context] chronological TOC

2024-01-26 Thread jbf
after each \startchapter I have placed (as an example): \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} This gives me my list, but in page number order. How do I get the date (e.g. 29 April 2017) to be the ordering factor in the list. I assume it will be something to do

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Willi Egger via ntg-context
onsider the following example: >>>> \starttext >>>> \starttitle[title=Contents] >>>> \placelist[chapter][criterium=all] >>>> \stoptitle >>>> \startchapter[title=Mychapter] >>>> \input knuth >>>> \startsubject[

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-27 Thread Hans Hagen via ntg-context
] \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \stopsubject \stopchapter \stoptext According to the Wiki I should get te number (1) in the TOC. Instead the text starts at the height

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-26 Thread Willi Egger via ntg-context
terium=all] >> \stoptitle >> \startchapter[title=Mychapter] >> \input knuth >> \startsubject[title=Subject will be in TOC] >> \writetolist[chapter]{1}{I am in TOC!} >> \input ward >> \stopsubject >> \stopchapter >> \stoptext >

Re: [NTG-context] \writetolist not writing the number to the TOC

2023-03-26 Thread Henning Hraban Ramm via ntg-context
knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \stopsubject \stopchapter \stoptext According to the Wiki I should get te number (1) in the TOC. Instead the text starts at the height of the chapter-numbering and is not carrying

[NTG-context] How to prefix the list of figures with part number?

2023-03-25 Thread Willi Egger via ntg-context
] \stopsubject \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \startplacefigure [location=middle, title=Cow 1

[NTG-context] \writetolist not writing the number to the TOC

2023-03-25 Thread Willi Egger via ntg-context
] \writetolist[chapter]{1}{I am in TOC!} \input ward \stopsubject \stopchapter \stoptext According to the Wiki I should get te number (1) in the TOC. Instead the text starts at the height of the chapter-numbering and is not carrying the given number. Am I doing something wrong? Kind regards Willi

Re: [NTG-context] Confusing interaction between \writetolist and bookmarks (bug?)

2021-11-22 Thread musa furber via ntg-context
kmarks and table of > > contents -- until I started using \writetolist to manually inject > > additional sections and subsections into their respective lists. The > > manually injected entries do show up (as I expected), but their > > corresponding PDF bookmarks get repeated (not

Re: [NTG-context] Confusing interaction between \writetolist and bookmarks (bug?)

2021-11-22 Thread Musa Furber via ntg-context
amples. > > My book design requires the front matter to contain an abridged table of > contents just for chapters, and a detailed table of contents in the back > matter. > > Everything worked fine -- including the PDF bookmarks and table of > contents -- until I started usi

Re: [NTG-context] Confusing interaction between \writetolist and bookmarks (bug?)

2021-11-22 Thread Hans Hagen via ntg-context
for chapters, and a detailed table of contents in the back matter. Everything worked fine -- including the PDF bookmarks and table of contents -- until I started using \writetolist to manually inject additional sections and subsections into their respective lists. The manually injected entries

[NTG-context] Confusing interaction between \writetolist and bookmarks (bug?)

2021-11-22 Thread musa furber via ntg-context
matter. Everything worked fine -- including the PDF bookmarks and table of contents -- until I started using \writetolist to manually inject additional sections and subsections into their respective lists. The manually injected entries do show up (as I expected), but their corresponding PDF bookmarks

[NTG-context] Solved: Book setup with LHS-side quotes before chapters/parts, header/footer issues, TOC, etc.

2021-10-26 Thread Gerben Wierda via ntg-context
, appendixlabel=, sectionconversionset=part, page=yes, header=empty, footer=empty, placehead=yes] \definelist[parttext] \setuplist[parttext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1]\PartAbstract{\writetolist[parttext]{}{\start\itx#1\stop}} %%% %%% chapter is managed here

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-25 Thread Bruce Horrocks via ntg-context
\resetsetups[quote:text] \page[right] \blank[force,2*big] \setupfootertexts [] [] [] [] %% \stopsetups Is that what you were after? > > \startsetups chapter:after > \blank[3*big] > \stopsetups > > \definelist[chaptertext] > \setuplist[chaptertext][margin

[NTG-context] Move the page number from header to footer on the current page only?

2021-10-25 Thread Gerben Wierda via ntg-context
lignment[left,nothyphenated] > \startnarrower[4*left] > \em \getbuffer[chapter:quote] > \stopnarrower > \stopalignment > \resetsetups[quote:text] > \page[right] > \blank[force,2*big] > \stopsetups > > \startsetups chapter:after >

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
chapter:quote] \stopnarrower \stopalignment \resetsetups[quote:text] \page[right] \blank[force,2*big] \stopsetups \startsetups chapter:after \blank[3*big] \stopsetups \definelist[chaptertext] \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1

Re: [NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
\page[right] > %\noheaderandfooterlines % I want the enumber in the footer here > \blank[force,2*big] > \stopsetups > > \startsetups chapter:after > \blank[3*big] > \stopsetups > > \definelist[chaptertext] > \setuplist[chaptertext][margin=1.3em,pagecommand=\gob

[NTG-context] How do I get the first page of the chapter to display the page number in the footer in this setup?

2021-10-24 Thread Gerben Wierda via ntg-context
] \stopsetups \definelist[chaptertext] \setuplist[chaptertext][margin=1.3em,pagecommand=\gobbleoneargument] \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} \starttext \startbuffer [chapter:quote] If you think good architecture is expensive, try bad architecture\crlf {\tf Brian

Re: [NTG-context] Indexing redux

2021-08-26 Thread Rik Kabel via ntg-context
; entries via the \seeREGISTER command (it does not properly support references to sub-entries) and it provides no support at all for "see also" entries. Can somebody suggest a way to generate these entries? Perhaps a way of inserting entries into the index before it is forma

Re: [NTG-context] Indexing redux

2021-08-26 Thread Taco Hoekwater via ntg-context
t; entries > via the \seeREGISTER command (it does not properly support references to > sub-entries) and it provides no support at all for "see also" entries. > > Can somebody suggest a way to generate these entries? Perhaps a way of > inserting entries into the index before it is

[NTG-context] Indexing redux

2021-08-25 Thread Rik Kabel via ntg-context
es no support at all for "see also" entries. Can somebody suggest a way to generate these entries? Perhaps a way of inserting entries into the index before it is formatted, in the manner of \writetolist or \writebetweenlist? (MkII has \writetoregister, but that did not carry forward a

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-18 Thread denis.maier
That's neat Hans. Thanks. Especially didn't know about \writedatatolist. What I want is basically to manually construct a toc entry, but in compliance with the overall styling of the contents list. So, I was hoping for something like this? \writetolist[chapter][location=here,pagenumber=4]{5

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-17 Thread Hans Hagen
On 3/17/2021 6:19 PM, denis.ma...@ub.unibe.ch wrote: Hi, I need to add an item to a list with an arbitrary page number. (The reason is that I have a multivolume book, and I want to add information about the other books to the TOC) I know about this: \writetolist[section]{}{It's a test

[NTG-context] Add items to list with arbitrary page number

2021-03-17 Thread denis.maier
Hi, I need to add an item to a list with an arbitrary page number. (The reason is that I have a multivolume book, and I want to add information about the other books to the TOC) I know about this: \writetolist[section]{}{It's a test} But how can you add an arbitrary page number ? Best, Denis

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-09 Thread Aditya Mahajan
On Wed, 9 Dec 2020, Wolfgang Schuster wrote: > > Actually, I cannot figure out how \writetolist works. According to > https://wiki.contextgarden.net/Command/writetolist, the 2nd argument is the > "number". But, for some reason, the list number doesn't show in placelist: &

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-09 Thread Wolfgang Schuster
] \starttest[title={This is a title}] \input ward \stoptest \starttest[title={This is another title}, list={This is in the 2nd list}] \input ward \stoptest just cheat: \starttest[title={This is another title}, list={This is in the 2nd list},after={\writetolist[test]{1}{what a cheat

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Aditya Mahajan
is in the 2nd list}] > > > \input ward > > > \stoptest > > > > just cheat: > > > > \starttest[title={This is another title}, list={This is in the 2nd > > list},after={\writetolist[test]{1}{what a cheat}}] > > \input ward > > \stoptest

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Aditya Mahajan
t; \starttest[title={This is a title}] > >\input ward > > \stoptest > > > > \starttest[title={This is another title}, list={This is in the 2nd list}] > >\input ward > > \stoptest > > just cheat: > > \starttest[title={This is another title},

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-08 Thread Hans Hagen
}] \input ward \stoptest just cheat: \starttest[title={This is another title}, list={This is in the 2nd list},after={\writetolist[test]{1}{what a cheat}}] \input ward \stoptest btw, maybe wolfgang should turn that module into a core mkxl one using the new fancy macro magic anyway

Re: [NTG-context] Simpleslides presentation: list of topics

2016-09-15 Thread Otared Kavian
{% \SlideTitle{#1} \unexpanded\define\TopicTitle{#1} \writetolist[ListOfTopics]{}{#1} } \define\Slide{\SlideTitle{\TopicTitle}} \define[1]\placeListOfTopics{% \SlideTitle{#1} \startalignment[middle] \completelist[ListOfTopics

Re: [NTG-context] placelist not working in latest beta

2016-03-21 Thread Hans Hagen
\doTopic[#1]{% \gdef\MyMark{#1}% \writetolist[MyTopics][location=none]{#1}{}} \define[3]\FancyEntry{% \doifelse{\rawstructurelistfirst}{\MyMark}% {\quad\color[red]{#1}\quad} {\quad #1\quad}} \setuplist[MyTopics] [pagenumber=no, alternative=command

[NTG-context] placelist not working in latest beta

2016-03-21 Thread Schmitz Thomas A.
=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \gdef\MyMark{#1}% \writetolist[MyTopics][location=none]{#1}{}} \define[3]\FancyEntry{% \doifelse{\rawstructurelistfirst}{\MyMark}% {\quad\color[red]{#1}\quad} {\quad #1\quad}} \setuplist[MyTopics

Re: [NTG-context] \writetolist command...

2016-03-04 Thread Willi Egger
Hans, thank you for your tip! Willi > On 4 mrt. 2016, at 12:08, Hans Hagen <pra...@wxs.nl> wrote: > > On 3/4/2016 5:37 AM, Willi Egger wrote: >> Hi all, >> >> I need to write to a list, however it appears that the second argument from >> \writeto

Re: [NTG-context] \writetolist command...

2016-03-04 Thread Hans Hagen
On 3/4/2016 5:37 AM, Willi Egger wrote: Hi all, I need to write to a list, however it appears that the second argument from \writetolist[name]{number}{ext} does not end up in the list. — What do I miss? \starttext \startsubject[title=Contents] \placelist[section

[NTG-context] \writetolist command...

2016-03-03 Thread Willi Egger
Hi all, I need to write to a list, however it appears that the second argument from \writetolist[name]{number}{ext} does not end up in the list. — What do I miss? \starttext \startsubject[title=Contents] \placelist[section][criterium=all] \stopsubject

Re: [NTG-context] horizontal list of sections/topics?

2016-02-12 Thread Alan BRASLAU
[pagenumber=no,alternative=command,command=\FancyEntry,interaction=all] \setupinteraction [state=start,color=,contrastcolor=] \def\MarkPage{0} \def\MyMark{} \def\Topic{\dosingleargument\doTopic} \def\doTopic[#1]{\def\MyMark{#1}\writetolist[MyTopics]{}{#1}} \define[3]\FancyEntry { \framed[wi

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Hans Hagen
{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Wolfgang Schuster
String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext \OLister1{Some list testing text xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx} \OListe

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Rik
On 2015-10-11 12:56, Wolfgang Schuster wrote: Is \limitatetext a option for you because unlike \doboundtext the command is unexpandable? \starttext \doboundtext {Thus, I came to the conclusion that the designer of a new system ...}{.5\textwidth}{...} \limitatetext{Thus, I came to the

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Rik Kabel
{99}\to\IDWidth\relax \def\STWidth{\dimexpr\textwidth-\IDWidth+1cm} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad

Re: [NTG-context] Regression with \doboundtext in \writetolist

2015-10-11 Thread Wolfgang Schuster
Rik 11. Oktober 2015 um 21:20 On 2015-10-11 12:56, Wolfgang Schuster wrote: Is it an option of which I am aware, yes. Do I desire to use it, no. Will I use it? Perhaps, if \doboundtext cannot be repaired. The resulting page with \limitatetext has large rivers of white on

[NTG-context] Regression with \doboundtext in \writetolist

2015-10-10 Thread Rik Kabel
} \definelist[OList] \setuplist [OList][criterium=all,alternative=c,pagecommand=\gobbleoneargument] \starttexdefinition OLister #ID#String {\writetolist[OList]{}{\hbox{\simplealignedbox{\IDWidth}{left}{#ID\quad} {\doboundtext{#String}{\STWidth}{…} \stoptexdefinition \starttext

[NTG-context] Questions on registers, and on processors used with registers

2015-10-04 Thread Rik Kabel
, 2.) in the first braced argument to writetolist. \definelist[Reprints][criterium=all] \starttext \section{Sec 1} \writetolist[Reprints]{1.}{List entry A} \subsection{Subsec 1} \writebetweenlist[Reprints]{\hrule} \writetolist[Reprints]{2.}{List entr

Re: [NTG-context] chapter only in bookmarks (not in text or in TOC)

2015-07-06 Thread Hans Hagen
it as a bookmark. How should I define \hiddentitle to get that? something \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \starttext \completecontent \writetolist[hiddentitle]{!!}{xxx} aa\page aa \chapter{Foreword} aa

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Otared Kavian
with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay a the entire page with a graphic yet have the real content of the page still available for TOC

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Robin.Kirkham
heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread John Culleton
: - \startstandardmakeup[doublesided=no] \vskip -0.15in \hskip -0.7in \hbox{\externalfigure[chaphead2.pdf][width=\paperwidth, height=\paperheight]} \stopstandardmakeup \writetolist[chapter]{2}{Chapter 2: Understanding the Food Industry

Re: [NTG-context] overlay or layer for chapter head.

2015-04-02 Thread Wolfgang Schuster
\writetolist[chapter]{2}{Chapter 2: Understanding the Food Industry}% This works but I want a less fiddly-more reliable method. \setupexternalfigures[location=default] \definelayer[chaptertext][width=\paperwidth,height=\paperheight] \define[2

[NTG-context] overlay or layer for chapter head.

2015-04-01 Thread John Culleton
tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want to overlay a the entire page with a graphic yet have the real content of the page still available for TOC, running head, indexing terms etc. Any suggestions

Re: [NTG-context] overlay or layer for chapter head.

2015-04-01 Thread Idris Samawi Hamid ادريس سماوي حامد
that fancy page but still have the \chapter statement for running heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing

Re: [NTG-context] overlay or layer for chapter head.

2015-04-01 Thread Alan BRASLAU
statement for running heads, TOC etc. Is there a way that I can overlay the entire chapter first page with a graphic, ideally a one page pdf file. I have tried workarounds with \startstandardmakeup,\writetolist, \definemarking etc. but the whole thing is getting too complicated. I just want

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-22 Thread Wolfgang Schuster
this when you replace \GotoPar with a different mechanism. begin example \showgrid \definelist[chaptertext][style=\itx] \define[1]\ChapterAbstract{\doflushatpar{\writetolist[chaptertext]{}{#1}}} \starttext \title{\headtext{content}} \placelist[chapter,chaptertext] \chapter{Knuth

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-20 Thread Gerben Wierda
with MkII and MkIV and the MkIV behaviour need to be corrected. The space after \chapter comes from your \writetolist entry and you can correct this with the \GotoPar command at the end of the entry as shown below. begin example \showgrid \setuphead[chapter][before={\blank[force,2

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-16 Thread Gerben Wierda
and the first paragraph. How can I influence this? The different space before the \chapter is caused by the “fixed” keyword for \blank which produce different result with MkII and MkIV and the MkIV behaviour need to be corrected. The space after \chapter comes from your \writetolist entry

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Gerben Wierda
][margin=1.3em,pagecommand=\gobbleoneargument] \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} \stopenvironment = test.tex mkii \showgrid \startcomponent c_loosely \product prd_book \project

Re: [NTG-context] mkiv versus mkii: whitespace issues

2015-03-15 Thread Wolfgang Schuster
the \chapter is caused by the “fixed” keyword for \blank which produce different result with MkII and MkIV and the MkIV behaviour need to be corrected. The space after \chapter comes from your \writetolist entry and you can correct this with the \GotoPar command at the end of the entry as shown

Re: [NTG-context] small abstracts in table of contents?

2014-11-25 Thread Gerben Wierda
] %\completecontent[level=chapter] The %-outcommented was the original list. In the chapter file, it now says \chapter[h:foo]{Foo} \writetolist[chaptertext]{}{\input tufte} The effect of this is that every chapter name in the list is typeset as \itx, not just the summary chaptertext. The chapter

Re: [NTG-context] small abstracts in table of contents?

2014-11-25 Thread Otared Kavian
] %\completecontent[level=chapter] The %-outcommented was the original list. In the chapter file, it now says \chapter[h:foo]{Foo} \writetolist[chaptertext]{}{\input tufte} The effect of this is that every chapter name in the list is typeset as \itx, not just the summary chaptertext. The chapter numbers

Re: [NTG-context] small abstracts in table of contents?

2014-11-25 Thread Gerben Wierda
} \writetolist[chaptertext]{}{This is a small description of this chapter: \input ward } \input knuth.tex \chapter{This is a chapter} \writetolist[chaptertext]{}{This is a small description of this chapter: \input ward } \input knuth.tex \chapter{This is a chapter} \writetolist[chaptertext

Re: [NTG-context] small abstracts in table of contents?

2014-11-25 Thread Otared Kavian
[chaptertext][pagecommand=\gobbleoneargument] \define[1]\ChapterAbstract{\writetolist[chaptertext]{}{\start\itx#1\stop}} \starttext \placelist[chapter,chaptertext] \chapter{This is a chapter} \ChapterAbstract{This is a small description of this chapter: \input ward } \input knuth.tex \stoptext

Re: [NTG-context] small abstracts in table of contents?

2014-11-24 Thread Wolfgang Schuster
or \writetolist commands for this. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

Re: [NTG-context] small abstracts in table of contents?

2014-11-24 Thread Otared Kavian
{This is a chapter} \writetolist[chaptertext]{}{This is a small description of this chapter: \input ward } \input knuth.tex \stoptext Best regards: OK On 25 Nov 2014, at 00:41, Gerben Wierda gerben.wie...@rna.nl wrote: I have a standard ToC, but what I’d like to have is that each chapter item (I don’t go

Re: [NTG-context] small abstracts in table of contents?

2014-11-24 Thread Hans Hagen
[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{This is a small description of this chapter: \input ward } \input knuth.tex \stoptext The mkiv way: \starttext \unexpanded\def\ShowSummary#1#2#3% {\inleftmargin{#1}\structurelistuservariable{summary}\blank

Re: [NTG-context] \writetolist in mkiv

2014-10-13 Thread Jano Kula
Thank you, Wolfgang, here is the working example for the structure manual ;) % \writetolist local table of contents example \def\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3

[NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula
Hello to everybody! Minimal story - How to insert local TOC of manually created subsections after the section starts? % start minimal example \def\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Wolfgang Schuster
% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3}{% \startchapter[title=Chapter] \placecontent[chapter,criterium=local] % local TOC OK You can’t put a keyword (chapter) and a assignment (criterium=local) in the same argument of a setup

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Jano Kula
\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3}{% \startchapter[title=Chapter] \placecontent[chapter,criterium=local] % local TOC OK You can’t put a keyword (chapter) and a assignment

Re: [NTG-context] \writetolist in mkiv

2014-10-12 Thread Wolfgang Schuster
subsections after the section starts? % start minimal example \def\ManualSubsection#1{\blank% {\bf Manual Subsection #1}\par% \writetolist[subsection]{whatever}{Manual Subsection #1}% \input tufte\relax} \starttext \dorecurse{3}{% \startchapter[title=Chapter] \placecontent[chapter

Re: [NTG-context] Chapter precis

2014-08-30 Thread Alan BRASLAU
this text in the table of contents as suggested in this thread. I thought about adding before={\startbuffer[precis]}, after={\stopbuffer\getbuffer[precis]\writetolist[chapter]{}{\getbuffer[precis]}} to the \definestartstop but this does not seem to work. I did not try further. Perhaps someone has

Re: [NTG-context] Chapter precis

2014-08-28 Thread Wolfgang Schuster
{This is a chapter} \writetolist[chapter]{}{This is a summary of the chapter with \tex{writetolist}.} \writebetweenlist[chapter][location=here]{This is a summary of the chapter with \tex{writebetweenlist}.} \chapter{This is another chapter} \stoptext Wolfgang

Re: [NTG-context] Chapter precis

2014-08-28 Thread Werner Hintze
to tell without a example which demonstrates the error because the following works for me. \starttext \completecontent \chapter{This is a chapter} \writetolist[chapter]{}{This is a summary of the chapter with \tex{writetolist}.} \writebetweenlist[chapter][location=here]{This is a summary

Re: [NTG-context] Chapter precis

2014-08-28 Thread Werner Hintze
with \writebetweenlist[chapter]{XYZ} or with \weitetolist[chapter]{XYZ} But both produce only a fatal error. What’s wrong here? Hard to tell without a example which demonstrates the error because the following works for me. \starttext \completecontent \chapter{This is a chapter} \writetolist[chapter

Re: [NTG-context] Chapter precis

2014-08-28 Thread Werner Hintze
Yes. I did. Before and now. But I think, writebetweenlist is not what I’m looking for. I try now with \writetolist[section] and to give the section list the desired format. That seems not easy, because the text now runs on the whole line, this means also in the region, where the page numbers

Re: [NTG-context] Chapter precis

2014-08-28 Thread Wolfgang Schuster
Am 28.08.2014 um 17:46 schrieb Werner Hintze w.hin...@posteo.eu: Yes. I did. Before and now. But I think, writebetweenlist is not what I’m looking for. I try now with \writetolist[section] and to give the section list the desired format. That seems not easy, because the text now runs

Re: [NTG-context] Chapter precis

2014-08-28 Thread Werner Hintze
, Wolfgang Schuster wrote: Am 28.08.2014 um 17:46 schrieb Werner Hintze w.hin...@posteo.eu: Yes. I did. Before and now. But I think, writebetweenlist is not what I’m looking for. I try now with \writetolist[section] and to give the section list the desired format. That seems not easy, because

Re: [NTG-context] Chapter precis

2014-08-28 Thread Wolfgang Schuster
[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{\input ward } \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] Chapter precis

2014-08-28 Thread Werner Hintze
] \chapter{This is a chapter} \writetolist[chaptertext]{}{\input ward } \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] writetolist doesn't include sectionnumber in mkiv?

2014-02-15 Thread Sanjoy Mahajan
With MkIV, I'm having trouble getting \writetolist to include sectionnumbers. Or at least, I cannot get the typeset list to include the sectionnumbers (but maybe writetolist sent in the information). Here's a minimal example, which is almost exactly the example from the wiki at http

[NTG-context] Bug in the latest beta

2013-04-15 Thread Jannik Voges
Hello ConTeXt-Users, I have found a bug, when using \writetolist: \starttext \writetolist[chapter]{}{test} \stoptext That gives an error, but changing the list to a not predefined list doesn't. For example \definelist[chapter1] \starttext \writetolist[chapter1]{}{test} \stoptext

Re: [NTG-context] Bug in the latest beta

2013-04-15 Thread Wolfgang Schuster
Am 14.04.2013 um 12:42 schrieb Jannik Voges researchj...@icloud.com: Hello ConTeXt-Users, I have found a bug, when using \writetolist: \starttext \writetolist[chapter]{}{test} \stoptext That gives an error, but changing the list to a not predefined list doesn't. For example

Re: [NTG-context] Bug in the latest beta

2013-04-15 Thread Jannik Voges
Hello, today I updated the beta and the error is gone. Thanks for the fix or sorry, if that error was caused by a corrupt installation. Jannik Am 14.04.2013 um 12:42 schrieb Jannik Voges researchj...@icloud.com: Hello ConTeXt-Users, I have found a bug, when using \writetolist

Re: [NTG-context] How to use module simpleslides' SideToc

2013-01-09 Thread Sietse Brouwer
\MyMark{} % \Topic takes one optional argument: #1, the topic name. \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% % let it be known that we are in section #1 (used by \FancyTopic) \def\MyMark{#1}% % let topic #1 appear in the TOC (well, the MyTopics list) \writetolist[MyTopics

Re: [NTG-context] How to use module simpleslides' SideToc

2013-01-08 Thread Thomas A. Schmitz
]} {\color[blue]{#1 = \MyMark}\blank[medium]} } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber=no, alternative=command

Re: [NTG-context] How to use module simpleslides' SideToc

2013-01-08 Thread 土卜皿
= \MyMark}} {\color[blue]{#1 = \MyMark}} \blank[medium] } \definelist[MyTopics][criterium=all] \def\MyMark{} \def\Topic% {\dosingleargument\doTopic} \def\doTopic[#1]{% \def\MyMark{#1}% \writetolist[MyTopics]{#1}{}% } \setuplist[MyTopics] [pagenumber

[NTG-context] two bugs in the latest beta of context mkiv

2012-12-03 Thread Jannik Voges
. \starttext \chapter{A Chapter} \section{A Section} \subsection{A Subsection} \chapter{Another Chapter} \subsection{Another Subsection} \stoptext In my attempt to circumvent this problem I tried to write my own table of contents (the number in the headlines were easy to fix) with \writetolist

[NTG-context] Lists and alternative=command

2012-05-17 Thread Rogers, Michael K
] [alternative=command,command=\MyListEntry] \starttext \writetolist[MyList]{First}{Second} \placelist[MyList] \stoptext It generates the following error three times, once per argument in \MyListEntry, I suppose. ConTeXt ver: 2012.05.14 16:00 MKIV fmt: 2012.5.16 int: english/english

Re: [NTG-context] \setuphead and \startchapter request

2012-03-19 Thread Alan BRASLAU
, but \starttitle does not, by design, add an entry to the TOC, nor a bookmark. And \starttitle [title={Conclusions}] \writetolist[chapter]{}{Conclusions}% works \bookmark{Conclusions}% Does not work! is less elegant than \startchapter [number=no,incrementnumber=no,title={Conclusions}] (but does have

Re: [NTG-context] Bug in \setuplist

2012-03-15 Thread Willi Egger
. Properties fitting them for domestication. Bees never attack when filled with honey, 26. As you can see there are only chapter numbers given. All other entries in the TOC are not even headings in the text (!). So I will have to set these texts up with \writetolist. The texts in the TOC never match

Re: [NTG-context] Bug in \setuplist

2012-03-15 Thread Willi Egger
can see there are only chapter numbers given. All other entries in the TOC are not even headings in the text (!). So I will have to set these texts up with \writetolist. The texts in the TOC never match any text and are only indications on the subject dealt with on the given page. -- I seems

Re: [NTG-context] Problem with \writebetweenlist

2012-02-26 Thread Hans Hagen
\unexpanded\def\writebetweenlist{\dodoubleempty \strc_lists_write_between} \unexpanded\def\writedatatolist {\dotripleargument\strc_lists_write_data_to} \unexpanded\def\writetolist {\dodoubleempty \strc_lists_write_to} \def\strc_lists_write_between[#tag]% {\begingroup \edef\currentlist{#tag

[NTG-context] Unnumbered chapter in table of contents?

2012-02-15 Thread Alasdair McAndrew
] and \writetolist[content]{}{Answers to Exercises} but these don't seem to work. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew

Re: [NTG-context] Unnumbered chapter in table of contents?

2012-02-15 Thread Otared Kavian
on the exercises; just the title. How can I easily achieve all of this? I've tried with \title[Answers to Exercises] and \writetolist[content]{}{Answers to Exercises} but these don't seem to work. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com

Re: [NTG-context] Pagereferences to more than one page

2012-01-02 Thread luigi scarso
= document.jan.multiple_references_stored or {} \stopluacode \def\WriteToList{% \startluacode local f=io.open('multiref.tuc','r') if f==nil then f=io.open('multiref.tuc','w') f:write(local multiple_references= multiple_references or {}\n) f:write(multiple_references={\n) for k,v in pairs(document.jan.multiple_references) do

[NTG-context] \placelist and \writetolist

2011-12-13 Thread Marco Pessotto
Hello! I can't understand what I'm doing wrong here: % \setuplist[mylist] [alternative=c, width=0mm, style=\tfx, criterium=all] \starttext \placelist[mylist] \page[yes] \input knuth \writetolist[mylist]{}{Item} \stoptext

Re: [NTG-context] \placelist and \writetolist

2011-12-13 Thread Wolfgang Schuster
knuth \writetolist[mylist]{}{Item} \stoptext % The document compiles fine with version 2011.05.18 22:2, but it fails miserably with the latest (2011.11.29 23:11) Replace \setuplist with \definelist, before you use a list you should create it. Wolfgang

  1   2   3   >